package com.weita.lightfood.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author IT_Monster
 */
@ApiModel
@Data
public class User {
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", example = "0")
    private Integer id;

    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    private String name = "";

    /**
     * 用户联系号码
     */
    @ApiModelProperty("用户联系号码")
    private String phoneNumber = "";

    /**
     * 用户密码
     */
    @ApiModelProperty(value = "用户密码", hidden = true)
    private String password = "";

    /**
     * 用户性别
     */
    @ApiModelProperty(value = "用户性别（0女1男）", example = "0")
    private Integer sex = 0;

    /**
     * 身高
     */
    @ApiModelProperty(value = "身高", example = "0")
    private double height = 0.0;

    /**
     * 生日
     */
    @ApiModelProperty("用户生日")
    private String dateBirth = "";

    /**
     * 初始体重
     */
    @ApiModelProperty(value = "初始体重", example = "0")
    private double firstWeight = 0;

    /**
     * 最新体重
     */
    @ApiModelProperty(value = "最新体重" , example = "0")
    private double newWeight = 0;

    /**
     * 减肥目标类型（维持0增肌1减肥2）
     */
    @ApiModelProperty(value = "目标类型（维持0增肌1减肥2）", example = "0")
    private Integer aim = -1;

    /**
     * 目标体重
     */
    @ApiModelProperty(value = "目标体重", example = "0")
    private double aimWeight = 0;

    /**
     * 减肥时间
     */
    @ApiModelProperty(value = "减肥时间", example = "0")
    private Integer weightTime = 0;

    /**
     * 密保问题
     */
    @ApiModelProperty("密保问题")
    private String question = "";

    /**
     * 密保答案
     */
    @ApiModelProperty("密保答案")
    private String answer = "";

    /**
     * 用户角色
     */
    @ApiModelProperty(value = "用户角色", hidden = true, example = "0")
    private Integer role = 0;

    /**
     * 减肥开始时间
     */
    @ApiModelProperty(value = "减肥开始时间", hidden = true)
    private String beginTime;

    /**
     * 减肥目标日期
     */
    @ApiModelProperty(value = "减肥目标日期", hidden = true)
    private String aimTime;

    /**
     * 用户设备id
     */
    @ApiModelProperty(value = "用户设备id",hidden = true)
    private String deviceId;
    /**
     * 微信小程序用户openid
     */
    @ApiModelProperty(value = "用户微信openid",hidden = true)
    private String openId;

}